<?php 
/*
Template Name: morenav
*/
get_header(); 

global $more;
$more = 0;
?>

<div class="container">
        <div class="row-fluid">
            <div class="span9">
                <h4><i class='icon-globe'></i>  最新文章</h4>
                <hr>
                <?php
                    $args = array(
                            'offset'          => 0,
                            'orderby'         => 'post_date',
                            'order'           => 'DESC',
                            'post_type'       => 'post'
                            );
                    $query = new WP_Query( $args );

                    while ( $query->have_posts() ) 
                    {
                        $query->the_post();
                        $more = 0;
                ?>
                        <div id="post-<?php the_ID(); ?>">
                            <h2><a href="<?php the_permalink() ?>" title="链接至 <?php the_title(); ?>"><?php the_title(); ?></a></h2>
                            <?php 
                                echo "<span><i class='icon-calendar'></i>  ".get_the_date("Y年m月d日")."</span>  <i class='icon-tags'></i>  "; 
                                the_tags(""," • ","");
                            ?>
                            <i class="icon-comment"></i> <?php comments_popup_link( '<span class="leave-reply">发表评论</span>', "1 条评论", "% 条评论"); ?>
                            <div class="entry-content">
                            <?php 
                                the_content("<span class='more'>...更多 ".get_the_title()."</span>"); 
                            ?>
                            </div>
                        </div>
                        <hr >
                <?php 
                    }
                    wp_reset_postdata();
                ?>
            </div>
            <div class="span3 well">
                <?php get_sidebar(); ?>
            </div>
        </div>
</div> <!-- container -->

<?php get_footer(); ?>



